.class Lrexsee/core/browser/RexseeInception$1;
.super Lrexsee/core/browser/clazz/PageReadyListeners$PageReadyListener;
.source "RexseeInception.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lrexsee/core/browser/RexseeInception;-><init>(Lrexsee/core/browser/Browser;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lrexsee/core/browser/RexseeInception;


# direct methods
.method constructor <init>(Lrexsee/core/browser/RexseeInception;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lrexsee/core/browser/RexseeInception$1;->this$0:Lrexsee/core/browser/RexseeInception;

    .line 32
    invoke-direct {p0}, Lrexsee/core/browser/clazz/PageReadyListeners$PageReadyListener;-><init>()V

    return-void
.end method


# virtual methods
.method public run(Landroid/content/Context;Lrexsee/core/browser/Browser;Ljava/lang/String;)V
    .locals 6
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "browser"    # Lrexsee/core/browser/Browser;
    .param p3, "url"    # Ljava/lang/String;

    .prologue
    .line 36
    :try_start_0
    iget-object v3, p0, Lrexsee/core/browser/RexseeInception$1;->this$0:Lrexsee/core/browser/RexseeInception;

    # getter for: Lrexsee/core/browser/RexseeInception;->mMap:Ljava/util/HashMap;
    invoke-static {v3}, Lrexsee/core/browser/RexseeInception;->access$0(Lrexsee/core/browser/RexseeInception;)Ljava/util/HashMap;

    move-result-object v3

    invoke-virtual {v3}, Ljava/util/HashMap;->isEmpty()Z

    move-result v3

    if-eqz v3, :cond_1

    .line 44
    :cond_0
    :goto_0
    return-void

    .line 37
    :cond_1
    iget-object v3, p0, Lrexsee/core/browser/RexseeInception$1;->this$0:Lrexsee/core/browser/RexseeInception;

    # getter for: Lrexsee/core/browser/RexseeInception;->mMap:Ljava/util/HashMap;
    invoke-static {v3}, Lrexsee/core/browser/RexseeInception;->access$0(Lrexsee/core/browser/RexseeInception;)Ljava/util/HashMap;

    move-result-object v3

    invoke-virtual {v3}, Ljava/util/HashMap;->keySet()Ljava/util/Set;

    move-result-object v3

    invoke-interface {v3}, Ljava/util/Set;->toArray()[Ljava/lang/Object;

    move-result-object v2

    .line 38
    .local v2, "keys":[Ljava/lang/Object;
    const/4 v1, 0x0

    .local v1, "i":I
    :goto_1
    array-length v3, v2

    if-ge v1, v3, :cond_0

    .line 39
    new-instance v4, Ljava/lang/StringBuilder;

    const-string v3, "javascript:"

    invoke-direct {v4, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v3, p0, Lrexsee/core/browser/RexseeInception$1;->this$0:Lrexsee/core/browser/RexseeInception;

    # getter for: Lrexsee/core/browser/RexseeInception;->mMap:Ljava/util/HashMap;
    invoke-static {v3}, Lrexsee/core/browser/RexseeInception;->access$0(Lrexsee/core/browser/RexseeInception;)Ljava/util/HashMap;

    move-result-object v3

    aget-object v5, v2, v1

    invoke-virtual {v5}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v3, v5}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/String;

    invoke-virtual {v4, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {p2, v3}, Lrexsee/core/browser/Browser;->loadUrl(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 38
    add-int/lit8 v1, v1, 0x1

    goto :goto_1

    .line 41
    .end local v1    # "i":I
    .end local v2    # "keys":[Ljava/lang/Object;
    :catch_0
    move-exception v3

    move-object v0, v3

    .line 42
    .local v0, "e":Ljava/lang/Exception;
    iget-object v3, p0, Lrexsee/core/browser/RexseeInception$1;->this$0:Lrexsee/core/browser/RexseeInception;

    invoke-virtual {v3}, Lrexsee/core/browser/RexseeInception;->getInterfaceName()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {p2, v3, v0}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/Exception;)V

    goto :goto_0
.end method
